package example.controller;

import example.handler.TestHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by snksnk1091 on 2017/7/10.
 */
@Controller
@RequestMapping("/home")
public class IndexController {
    @Autowired
    private TestHandler testHandler;

    @RequestMapping("/index")
    public String index() {
        System.out.println("进入了controller");
//        testHandler.test();
        return "/index";
    }
}
